function initScreen(pcPage, mobilePage, mobileRightMenu) {
  if (public.isMobile()) {
    pcPage && pcPage.hide()
    mobilePage && mobilePage.show()
  } else {
    mobileRightMenu && mobileRightMenu.hide()
    pcPage && pcPage.show()
    mobilePage && mobilePage.hide()
  }
}

function clickHandle(rightMenu, mobilePage, mobileRightMenu) {
  rightMenu.click(function (event) {
    mobileRightMenu && mobileRightMenu.fadeIn()
    event.stopPropagation()
  })
  mobilePage.click(function (event) {
    mobileRightMenu && mobileRightMenu.hide()
    event.stopPropagation()
  })
}

function isIe(){
  return !!window.ActiveXObject || "ActiveXObject" in window;
}

function loadScript(url,callback){
	var script = document.createElement('script');
	script.type = 'text/javascript';
	if(script.readyState){
		// IE
		script.onreadystatechange = function(){
			if(script.readyState == 'loaded' || script.readyState == 'complete'){
				script.onreadystatechange = null;
				callback();
			}
		};
	}else{
		// Others
		script.onload = function(){
			callback();
		}
	}
  script.src = url;
	document.getElementsByTagName('head')[0].appendChild(script);
}
